import tensorflow as tf
import time

tf.constant([1,2])


t1 = time.time()
b = tf.constant(list(range(1,300000)))
print(time.time()-t1,b)
t2 = time.time()
c = tf.range(1,300000)
print(time.time()-t2)

tf.keras.losses.mse(tf.constant([[1,2],[3,4]]), tf.ones(2,2))

tf.keras.losses.mse(tf.constant([1,2,3,4]), tf.ones(2*2))
